package com.lzc.soundsystem.autoconfig.impl;

import com.lzc.soundsystem.autoconfig.CompactDisc;
import com.lzc.soundsystem.autoconfig.MediaPlayer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class CDPlayer implements MediaPlayer {

    @Autowired
    private CompactDisc cd;

    @Override
    public void play() {
        cd.play();
    }
}
